package com.lwei.tallybook.base.domain.base;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Getter;
import lombok.Setter;

import java.util.Date;

/**
 * base
 * @author sks.lwei
 * @param <T>
 */
@Getter
@Setter
public class BaseDomain<T extends Model<?>> extends Model<T> {

    @TableId
    private Integer id;

    private String uuid;

    /**
     * 是否标记删除 0未删除 1已删除
     */
    @TableLogic
    private Integer yn;
    /**
     * 修改时间
     */
    @TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;
    /**
     * 创建时间
     */
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private Date createTime;

    /**
     * 排序
     */
    @TableField("order_sort")
    private Integer orderSort;

}
